<header class="bar bar-nav to-padding-top">
    <a class="icon icon-left pull-left external" href="javascript:;" ng-click="leaveOut()"></a>
    <a class="step-next pull-right external" ng-click="gotoStep(3)">下一步</a>
    <h1 class='title'>用户发团</h1>
</header>
<div  class="content" ng-init="getAllGroupTypes()">

    <div class="step-content">
        <p class="step-title">第二步：填写团商品基本信息</p>
        <div class="step-show-block">
            <div class="step-radius step-active" ng-click="gotoStep(1)"></div>
            <div class="step-line step-active"></div>
            <div class="step-radius step-active"></div>
            <div class="step-line"></div>
            <div class="step-radius" ng-click="gotoStep(3)"></div>
        </div>
        <div class="list-block">
            <ul>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">商品类型</div>
                            <div class="item-input">
                                <select ng-model="goodsType.goodsTypeId" ng-options="x.goodsTypeId as x.goodsTypeName for x in goodsTypes">
                                </select>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">商品规格</div>
                            <div class="formats-content">
                                <div class="group-format" ng-repeat="format in baseFormats">
                                    <input class="format-name" disabled ng-model="format[0]" type="text" placeholder="规格名">
                                    <span>：</span>
                                    <input class="format-value" ng-model="format[1]" type="text" placeholder="规格值">
                                </div>
                                <div class="group-format" ng-repeat="format in formats">
                                    <input class="format-name" ng-model="format[0]" type="text" placeholder="规格名">
                                    <span>：</span>
                                    <input class="format-value" ng-model="format[1]" type="text" placeholder="规格值">
                                </div>
                                <div class="group-format" ng-click="addFormat()">
                                    <i class="fa fa-plus-square-o"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">商品价格</div>
                            <div class="item-input">
                                <input type="number" ng-model="goodInfo.groupPrice" placeholder="该商品的团购单价（元）">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">商品原价</div>
                            <div class="item-input">
                                <input type="number" ng-model="goodInfo.groupPriceOriginal" placeholder="该商品的原单价（元）">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">邮费</div>
                            <div class="item-input">
                                <input type="number" ng-model="goodInfo.groupPostage" placeholder="不填默认6元（可选）">
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>


</div>

<div ng-init="suiMobileInit()"></div>